// JavaScript Document

	$('li#authors-stats.button').live("click",function() {
		// Fade in the progress bar
		$('p#status').html('Retrieving stats, please wait.');
		
		$.ajaxSetup ({
			cache: false
		});
		
		var data = '';
		var dataString = '';
		var load_url = 'stats/author_stats';
		
		$.ajax({
			type: "POST",
			url: load_url,
			data: dataString,
			success: function(msg) {
	
				$('div#stats-body').html(msg);

				return;
			},
			error: function(ob,errStr) {
				alert("There have been problems retrieving authors' stats");
				
				return;
			}
		});
		
		return false;
	});